//AMD模块，需申请声明依赖
define([],function(){
//************************************************************

	//获取浏览器信息
    var browser = navigator.appName;
	var version = navigator.appVersion.split(";")[1].replace(/[ ]/g,"");
	var protocol = location.protocol;
    
	//判断具体IE版本号
    if(browser == "Microsoft Internet Explorer"){
		//判断具体IE版本号
		switch (version){
			case "MSIE6.0": ieVer = 6;
			break;
			case "MSIE7.0": ieVer = 7;
			break;
			case "MSIE8.0": ieVer = 8;
			break;
			case "MSIE9.0": ieVer = 9;
			break;
			default: ieVer = '';
        }
        //为HTML增加class="ie ie*"
        addIeClass(ieVer);
        //为IE系列浏览器加载功能补丁
        loadIEfix(ieVer);
	}
    
    //为HTML增加class="ie ie*"
    function addIeClass(ieVer){
        //为HTML增加class="ie"
        document.documentElement.className+=' ie';
        //为HTML增加class="ie*"
        document.documentElement.className+=' ' + 'ie' + ieVer;
    }
    
    //为IE系列浏览器加载功能补丁
    function loadIEfix(ieVer){
        //加载浏览器特性检测，及加载相应补丁
        if(ieVer <= 9){
            require(['placeholder']);
        }
        if(ieVer <= 8){
            require(['respond']);
//            require(['respond', 'selectivizr', 'excanvas']);
            if(protocol=='file:'){
                 alert('respond.js、selectivizr.js需要在http协议中才可正常工作');
            }
        }
        if(ieVer <= 7){
            require(['ieUpgrade']);
        }
        if(ieVer <= 6){
            require(['iepng'], function(){
                //指定特定dom修复png
                DD_belatedPNG.fix('.iepng');
            });
        }

    }
    
    
//************************************************************	
})